<!--扫码注册-->
<template>
  <div class="contain">
    <app-header></app-header>
    <div class="logo-img mt30"><img src="~images/logo/login_logo.png"></div>
    <!-- <div class="m-want-head">
      <h2 class="m-want-tit">面对面扫码注册</h2>
      <p>被你邀请的客户，当TA注册成功后就是您的客户</p>
      <p>拓展新客户从未如此方便</p>
    </div>
    <div class="ewm-img" id="qr">
      <qrcode :value="qrimg" type="img"></qrcode>
    </div> -->
    <div class="m-want-head">
       <h2 class="m-want-tit">关注恋链公众号</h2>

    </div>
    <div class="ewm-img">
      <img src="~images/bg/ewm.jpg">
    </div>
  </div>
</template>

<script>

import appHeader from '@/components/core/header/app_header.vue';
export default {
  components:{
    appHeader
  },
  data: function() {
    return {
      handovercount: 0,
      receivingcount: 0,
      sendingcount: 0,
      numbers: '',
      carname: '',
      qrimg: '',
    };
  },
  methods: {
    getData: function() {
      if(localStorage.userinfo){
        var userinfo = JSON.parse(localStorage.userinfo);
        var url = location.href;
        url = url.substr(0, url.indexOf(location.hash));
        var codelist = url+'#!/login_pl?id=' + userinfo.StaffID;
        this.qrimg = codelist;
      }
    },
  },
  created(){
    document.title = '业务推广';
    this.getData();
  }
};
</script>
